/*
 * EggGenerator.cpp
 *
 *  Created on: Nov 15, 2012
 *      Author: lucas
 */

#include "EggGenerator.h"
#include <cstdlib>
#include <ctime>
EggGenerator::EggGenerator(Game& g) {
}

eggTypes EggGenerator::generateEgg() {
	float r;
	srand(time(NULL));
	r = rand() % 1;
	if (r < PROB_H_BLANCO )
		return Blanco;
	if (r < PROB_H_BLANCO + PROB_H_POCHE )
		return Poche;
	if (r < PROB_H_BLANCO + PROB_H_POCHE + PROB_H_CODORNIZ)
		return Codorniz;
	return Reloj;
}

EggGenerator::~EggGenerator() {
}

